package cn.wolfcode.luowowo.member.service;


import cn.wolfcode.luowowo.common.exception.LogicException;
import cn.wolfcode.luowowo.member.domain.UserInfo;

import java.util.List;

public interface IUserInfoService {
    UserInfo get(Long id);
    /**
     *
     * @param phone
     * @return true 手机号码存在
     * @return false 不存在
     */
    boolean checkPhone(String phone);

    void sendVerifyCode(String phone);
    //抛出自定义异常 区分系统出现的异常
    void userRegist(String phone,String nickname, String password, String rpassword, String verifyCode) throws LogicException;

    String userLogin(String username, String password)throws LogicException;

    List<UserInfo> list();
}
